package com.project.bean.ExpertConsultation;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.project.bean.DisasterPrevention.EventBean;

import java.time.LocalDate;

//会商实体
@TableName("consult_info")
public class ConsultBean {

    @TableId(value = "consult_id",type = IdType.AUTO)
    private Integer consultId;	//会商信息编号
    @TableField("consult_day")
    private LocalDate consultDay = LocalDate.now();	//会商日期
    @TableField("consult_people")
    private String consultPeople;	//会商人员
    @TableField("consult_result")
    private String consultResult;	//会商结果
    @TableField("fk_event_id")
    private Integer eventId; //事件外键



    @TableField(exist = false)
    private EventBean eventBean; //事件实体

    public ConsultBean() {
    }

    public ConsultBean(String consultPeople, String consultResult) {
        this.consultPeople = consultPeople;
        this.consultResult = consultResult;
    }

    public ConsultBean(LocalDate consultDay, String consultPeople, String consultResult) {
        this.consultDay = consultDay;
        this.consultPeople = consultPeople;
        this.consultResult = consultResult;
    }

    public ConsultBean(Integer consultId, LocalDate consultDay, String consultPeople, String consultResult, EventBean eventBean) {
        this.consultId = consultId;
        this.consultDay = consultDay;
        this.consultPeople = consultPeople;
        this.consultResult = consultResult;
        this.eventBean = eventBean;
    }

    public ConsultBean(String consultPeople, String consultResult, Integer eventId) {
        this.consultPeople = consultPeople;
        this.consultResult = consultResult;
        this.eventId = eventId;
    }

    public Integer getConsultId() {
        return consultId;
    }

    public void setConsultId(Integer consultId) {
        this.consultId = consultId;
    }

    public LocalDate getConsultDay() {
        return consultDay;
    }

    public void setConsultDay(LocalDate consultDay) {
        this.consultDay = consultDay;
    }

    public String getConsultPeople() {
        return consultPeople;
    }

    public void setConsultPeople(String consultPeople) {
        this.consultPeople = consultPeople;
    }

    public String getConsultResult() {
        return consultResult;
    }

    public void setConsultResult(String consultResult) {
        this.consultResult = consultResult;
    }

    public EventBean getEventBean() {
        return eventBean;
    }

    public void setEventBean(EventBean eventBean) {
        this.eventBean = eventBean;
    }

    public Integer getEventId() {
        return eventId;
    }

    public void setEventId(Integer eventId) {
        this.eventId = eventId;
    }

    @Override
    public String toString() {
        return "ConsultBean{" +
                "consultId=" + consultId +
                ", consultDay=" + consultDay +
                ", consultPeople='" + consultPeople + '\'' +
                ", consultResult='" + consultResult + '\'' +
                ", eventId=" + eventId +
                ", eventBean=" + eventBean +
                '}';
    }
}
